package _control;

import java.util.Observer;
import _model.HierarchieModel;

public class Controller {

	private HierarchieModel hModel;

	private static Controller instance;

	private Controller() {
		hModel = new HierarchieModel();

	}

	public static Controller getInstance() {
		if (instance == null) {
			instance = new Controller();
		}

		return instance;
	}

	public void addHierarchieModelObserver(Observer o) {
		hModel.addObserver(o);
	}

	public void vorgangStarten() {
		hModel.initialisiereDaten();

	}

}
